/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package elaborate.h2x.transform.position.schema.state;

import java.util.HashSet;
import java.util.Set;

/**
 *
 * @author lendle
 */
public class DefaultStateImpl implements State{

    protected Set<State> firstSet=new HashSet<State>();
    protected Set<State> lastSet=new HashSet<State>();

    /**
     * Get the value of lastSet
     *
     * @return the value of lastSet
     */
    public Set<State> getLastSet() {
        return new HashSet<State>(lastSet);
    }

    /**
     * Set the value of lastSet
     *
     * @param lastSet new value of lastSet
     */
    public void setLastSet(Set<State> lastSet) {
        this.lastSet.clear();
        this.lastSet.addAll(lastSet);
    }


    /**
     * Get the value of firstSet
     *
     * @return the value of firstSet
     */
    public Set<State> getFirstSet() {
        return new HashSet<State>(firstSet);
    }

    /**
     * Set the value of firstSet
     *
     * @param firstSet new value of firstSet
     */
    public void setFirstSet(Set<State> firstSet) {
        this.firstSet.clear();
        this.firstSet.addAll(firstSet);
    }

}
